<include file="Public/head" />
<include file="Public/menu" />
<include file="Coupon/menu" />
<!-- 详情页 -->
<div class="indexBox">
    <script type="text/javascript">
        $(function(){
            $(".idTabs").idTabs();
        });
    </script>
    <div class="idTabs">
        <ul class="tab">
            <li><a href="#main">添加/编辑代金券</a></li>
        </ul>
        <div class="items">
            <div id="main">
                <form action="{:U('Coupon/doEdit')}" method="post">
                    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                        <tbody>
                            <tr>
                                <th width="131">名称</th>
                                <th>内容</th>
                            </tr>
                            <tr>
                                <td align="right">面额</td>
                                <td>
                                    <input type="text" name="price" value="{$data.price}" size="80" class="inpMain" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">数量</td>
                                <td>
                                    <input type="text" name="quantity" value="{$data.quantity}" size="80" class="inpMain" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">有效期</td>
                                <td>
                                    <input name="day" value="{$data.day}" placeholder="请输入日期" class="laydate-icon" onclick="laydate()">
                                </td>
                            </tr>
                            <tr>
                                <td align="right">立即生效</td>
                                <td>
                                    <eq name="data.status" value="0">
                                        <input type="radio" name="status" value="1" />生效
                                        <input type="radio" name="status" value="0" checked="checked" />失效
                                    <else />
                                        <input type="radio" name="status" value="1" checked="checked" />生效
                                        <input type="radio" name="status" value="0" />失效
                                    </eq>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <input type="hidden" name="id" value="{$data.id}" />
                                    <input name="submit" class="btn" type="submit" value="提交" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
<include file="Public/footer" />